const EXIT_CODE = {
  OK: {
    MSG: '成功',
    CODE: 0
  },
  LACK_PACKAGE: {
    MSG: '缺少package.json, 请先创建',
    CODE: 1
  },
  LACK_SCRIPTKEY: {
    MSG: 'scriptKey不存在',
    CODE: 2
  },
  EXISTS_SCRIPTKEY: (name, scriptKey, scriptValue) => {
    return {
      MSG: `scriptKey已存在，请使用其他scriptKey命名,如需修改请使用: 
      \n\tnpx ${name} edit ${scriptKey} ${scriptValue}
      \n\t或
      \n\t${name} edit ${scriptKey} ${scriptValue}\n`,
      CODE: 3
    }
  }
}

module.exports = EXIT_CODE